<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="format-detection" content="telephone=no">
	<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
	<title>我的</title>
	<link rel="stylesheet" type="text/css" href="../../lib/css/skin.css"/>
</head>
<body>
<div id="root">
	<div class="app_warp bgw">
		<div class="app_head">
			<span class="left back"></span>
			<span class="name">知识库</span>
		</div>
		<div class="app_main clearfix">

		</div>
	</div>
</div>

<script id="document_index_template" type="text/html">
	<ul class="document_index_list clearfix">
		<%for(var i in data){%>
			<li tapmode onclick="api.openWin({name:'document_view',url:'document_view.html',pageParam:{id:<%:=data[i].id%>,name:'<%:=data[i].name%>'}})" style="background-image: url(<%:=data[i].img%>)">
				<%:=data[i].name%>
			</li>
		<%}%>
	</ul>
</script>

<script>

		var appready = function () {

			_$.db.get({
				key: 'know_category',
				call: function (data) {
					_$.template('document_index_template',{data:data},function(html){
						$('.app_main').html(html);
					})
				}
			})

		};

</script>
<script src="../../lib/js/config.js"></script>
<script src="../../lib/js/jquery.js"></script>
<script src="../../lib/js/common.js"></script>
</body>
</html>